#ifndef CTRL_HW_H
#define CTRL_HW_H

#include <QObject>

class Ctrl_hw : public QObject
{
    Q_OBJECT
public:
    static Ctrl_hw* getHandler(){
        if(handler == nullptr)
            handler = new Ctrl_hw();
        return handler;
    }
    ~Ctrl_hw();

    Q_INVOKABLE void invokable_setMode(int mode);
    Q_INVOKABLE void invokable_setSpeed(int value);


private:
    static Ctrl_hw *handler;
    explicit Ctrl_hw(QObject *parent = nullptr);


signals:
    void sig_ctrlmode(int mode);

};

#endif // CTRL_HW_H

